package close.mazegame.art.tileset;

import close.mazegame.art.Art;

import com.badlogic.gdx.graphics.g2d.TextureRegion;

public class FloorTileSet {
	
	public static FloorTileSet primary = new FloorTileSet("res/tiles/floor_0000.png", 64);
	public static FloorTileSet stone_black = new FloorTileSet("res/tiles/stoneFloor.png", 32, 0);
	public static FloorTileSet stone_red = new FloorTileSet("res/tiles/stoneFloor.png", 32, 1);
	public static FloorTileSet stone_green = new FloorTileSet("res/tiles/stoneFloor.png", 32, 2);
	public static FloorTileSet stone_darkgreen = new FloorTileSet("res/tiles/stoneFloor.png", 32, 3);
	public static FloorTileSet stone_white = new FloorTileSet("res/tiles/stoneFloor.png", 32, 4);
	public static FloorTileSet stone_blue = new FloorTileSet("res/tiles/stoneFloor.png", 32, 5);
	public static FloorTileSet stone_purple = new FloorTileSet("res/tiles/stoneFloor.png", 32, 6);
	public static FloorTileSet stone_orange = new FloorTileSet("res/tiles/stoneFloor.png", 32, 7);
	
	private TextureRegion[] floorTextures;
	
	public FloorTileSet(String filename, int tileSize) {
		this(filename, tileSize, 0);
	}
	
	public FloorTileSet(String filename, int tileSize, int row) {
		floorTextures = Art.splitRow(filename, tileSize, tileSize, row);
	}
	
	public int getNTextures() {
		return floorTextures.length;
	}
	
	public TextureRegion getTexture(int n) {
		return floorTextures[n];
	}
	
}
